<!doctype html>
<html>
<?php echo $this->fetch('head.html'); ?>

<body>
  <script src="<?php echo $this->_var['skins']; ?>js/jquery.blocksit.min.js"></script>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="index.php" class="goBack"><i class="back"></i></a></div>
      <div class="t_main">创业项目</div>
      <div class="t_right"><a href="/index.php?m=cyitem&a=add" class="link">发布项目</a></div>
    </div>
    <div class="paddingheight"></div>
    <?php $this->assign("ad1",M("ad")->listbyno("wap_cyitem_flash")); ?>
    <?php if ($this->_var['ad1']): ?>
    <div class="flexslider">
       
          <ul class="slides clearfix">
          <?php $_from = $this->_var['ad1']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
            <li><a href="<?php echo $this->_var['c']['link1']; ?>"><img class="img" src="<?php echo images_site($this->_var['c']['imgurl']); ?>"></a> </li>
          <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>  
           
          </ul>
    </div>
  	<?php endif; ?>
    <ul class="project_tabs clearfix">
      <li><a href="/index.php?m=cyitem" <?php if (! get ( 's_status' )): ?>class="cur"<?php endif; ?>>正在邀请</a></li>
      <li><a href="/index.php?m=cyitem&s_status=2" <?php if (get ( 's_status' ) == 2): ?> class="cur"<?php endif; ?>>成功项目</a></li>
      <li><a href="/index.php?m=cyitem&s_status=3" <?php if (get ( 's_status' ) == 3): ?> class="cur"<?php endif; ?>>往期项目</a></li>
    </ul>
    <div class="project_list">
      <ul>
      <?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
        <li class="grid">
          <p><a href="/index.php?m=show&id=<?php echo $this->_var['c']['id']; ?>"><img src="<?php echo images_site($this->_var['c']['imgurl']); ?>.small.jpg" class="img"></a></p>
         
          <p class="info"><span class="tips">介绍：</span><?php echo $this->_var['c']['description']; ?></p>
          <p class="operate clearfix"><span class="fl cur"><a href="/index.php?m=show&id=<?php echo $this->_var['c']['id']; ?>"><i
                                        class="zan"></i>赞<?php echo $this->_var['c']['love_num']; ?></a></span>
                            <span class="fr"><a href="/index.php?m=show&id=<?php echo $this->_var['c']['id']; ?>" class="btn"><?php if (! get ( 's_status' )): ?>我要加入<?php else: ?>查看项目<?php endif; ?></a></span></p>
         
        </li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>  
      </ul>
    </div>
    <script>
	
	$(function () {
		
//瀑布流
	$('.project_list ul').BlocksIt({numOfCol: 2, offsetX: 2, offsetY: 2, blockElement: "li"});
	});
	</script> 
  </div>
</div>
 <?php echo $this->fetch('botnav.html'); ?>
 <div style="clear:both;width:100%;"></div>
 <?php echo $this->fetch('footer.html'); ?>
 <script src="/plugin/jquery/flexslider/jquery.flexslider-min.js"></script>
 <link href="/plugin/jquery/flexslider/flexslider.css" rel="stylesheet">
 	  <script>
	//banner
	$(".flexslider").flexslider({
		 	slideshowSpeed: 3000
		 });
</script>
</body>
</html>
